<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>错误提示</title>
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background-color: #f5f5f5;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
        }

        .error-container {
            background: white;
            padding: 2rem;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            text-align: center;
            max-width: 400px;
            width: 90%;
        }

        .error-icon {
            color: #ff4d4f;
            font-size: 48px;
            margin-bottom: 1rem;
        }

        .error-title {
            color: #333;
            font-size: 24px;
            margin-bottom: 1rem;
        }

        .error-message {
            color: #666;
            line-height: 1.6;
            margin-bottom: 1.5rem;
        }

        .retry-button {
            background-color: #1890ff;
            color: white;
            border: none;
            padding: 0.8rem 2rem;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
            transition: background-color 0.3s;
        }

        .retry-button:hover {
            background-color: #40a9ff;
        }
    </style>
</head>

<body>
    <div class="error-container">
        <div class="error-icon">⚠️</div>
        <h1 class="error-title">登录失败</h1>
        <p class="error-message">{{.ErrorMessage}}</p>
        <button class="retry-button" onclick="window.close()">关闭</button>
    </div>
</body>

</html>